#!/bin/sh

addgroup -S kopano >/dev/null 2>/dev/null
addgroup http >/dev/null 2>/dev/null
adduser -S -D -H -h /var/lib/kopano -s /sbin/nologin -g kopano-core kopano-core >/dev/null 2>/dev/null
addgroup -S kopano-core kopano >/dev/null 2>/dev/null
addgroup -S kopano-diraccess >/dev/null 2>/dev/null
addgroup -S kopano-gateway >/dev/null 2>/dev/null
addgroup -S kopano-ical >/dev/null 2>/dev/null
adduser postfix kopano-diraccess >/dev/null 2>/dev/null
adduser -S -D -H -h /var/lib/kopano/ -s /sbin/nologin -g kopano-gateway kopano-gateway >/dev/null 2>/dev/null
adduser -S -D -H -h /var/lib/kopano/ -s /sbin/nologin -g kopano-ical kopano-ical >/dev/null 2>/dev/null
addgroup -S kopano-gateway kopano >/dev/null 2>/dev/null
addgroup -S kopano-ical kopano >/dev/null 2>/dev/null
exit 0
